package com.qyhl.webtv.module_news.news.comment;


import com.qyhl.webtv.commonlib.entity.intergral.CoinBean;
import com.qyhl.webtv.commonlib.entity.news.NormalNewsBean;

import java.util.List;

/**
 * Created by qyhl on 2017/11/30.
 */

public interface CommentContract {
    interface CommentView {
        void setComment(List<NormalNewsBean.ArticleComment> beanList, boolean isMore);

        void sendError(String msg);

        void sendSuccess(String msg);

        void setError(String msg);

        void setNetError(String msg);

        void setEmpty(String msg);

        void showMessage(String msg);

        void showLog(String msg);

        void getCoinSuccess(CoinBean coinBean);

        void getCoinError(String msg);
    }

    interface CommentPresenter {
        void getComment(String newsId, String id);

        void sendComment(String title, String catalogId, String type, String id, String commentUser, String content);

        void setError(int code, String msg);

        void setComment(List<NormalNewsBean.ArticleComment> beanList, boolean isMore);

        void sendError(String msg);

        void sendSuccess(String msg);

        void getCoin();

        void getCoinSuccess(CoinBean coinBean);

        void getCoinError(String msg);
    }

    interface CommentModel {
        void getComment(String newsId, String id);

        void sendComment(String title, String catalogId, String type, String id, String commentUser, String content);

        void getCoin();
    }
}
